//package com.yc.cloud.portal.controller;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;zxl
//import io.swagger.annotations.ApiOperation;
//import jakarta.annotation.Resource;
//import org.springframework.web.bind.annotation.*;
//import lombok.AllArgsConstructor;
//import org.springframework.validation.annotation.Validated;
//import lombok.val;
//import io.swagger.annotations.*;
//
//import java.util.List;
//import org.springframework.validation.annotation.Validated;
//import com.yc.cloud.common.basic.dto.BaseQueryParam;
//import com.yc.cloud.common.orm.CommonPage;
//import com.yc.cloud.common.basic.api.ResponseResult;
//
//    import org.springframework.web.bind.annotation.RestController;
//import com.yc.cloud.portal.service.ArDeviceStatusService;
//import com.yc.cloud.entity.ArDeviceStatus;
//
//
///**
// * 眼镜设备状态记录
// * @author Yancy
// * @date 2024-11-26
// */
//@RestController
//@RequestMapping("/ar-device-status")
//@Api(value = "眼镜设备状态记录", tags = "眼镜设备状态记录")
//    public class ArDeviceStatusController {
//
//@Resource
//private  ArDeviceStatusService arDeviceStatusService;
//
//
//@GetMapping
//@ApiOperation(value = "眼镜设备状态记录列表", notes = "支持分页查询,字段模糊匹配,排序等")
//public ResponseResult<CommonPage<ArDeviceStatus>>list(@Validated BaseQueryParam param){
//        val result= arDeviceStatusService.list(param);
//        return ResponseResult.success(CommonPage.restPage(result));
//        }
//
//
//@GetMapping("{id}")
//@ApiOperation(value = "眼镜设备状态记录详情", notes = "根据ID查询")
//public ResponseResult<ArDeviceStatus> get(@PathVariable @ApiParam(value = "ID", required = true) Long id){
//          val result = arDeviceStatusService.get(id);
//         return ResponseResult.success(result);
//        }
//
//
//@PostMapping
//@ApiOperation(value = "添加眼镜设备状态记录", notes = "添加")
//public ResponseResult<ArDeviceStatus> create(@Validated @RequestBody ArDeviceStatus param){
//        val result= arDeviceStatusService.create(param);
//        return result!=null?ResponseResult.success(result):ResponseResult.failed();
//        }
//
//
//@ApiOperation(value = "删除眼镜设备状态记录", notes = "通过ID删除")
//@DeleteMapping(value = "{id}")
//public ResponseResult<Boolean> delete(@PathVariable @ApiParam(value = "ID", required = true) Long id){
//        val result= arDeviceStatusService.delete(id);
//        return result?ResponseResult.success(true):ResponseResult.failed();
//        }
//
//
//
//
//@ApiOperation(value = "修改眼镜设备状态记录", notes = "通过ID修改")
//@PutMapping(value = "{id}")
//public ResponseResult<ArDeviceStatus> update(@PathVariable @ApiParam(value = "ID", required = true) Long id,@Validated @RequestBody ArDeviceStatus param){
//        val result= arDeviceStatusService.update(id,param);
//        return result!=null?ResponseResult.success(result):ResponseResult.failed();
//        }
//        }
